package com.genius;

import java.io.File;
import java.io.FileWriter;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		   try {
	            int quantity  = 11;
	            String id = "aaaa";
	            String output = "Your Request is accepted. ID = " + id + " QTY = " + quantity;
	            System.out.println(output);
	            try {
	                FileWriter fw = new FileWriter(new File("D:/temp/"+id + ".txt"));
	                fw.write(output);
	                fw.flush();
	                fw.close();
	            } catch (Exception e) {
	                e.printStackTrace();
	            }


	        } catch (Exception ex ) {
	            ex.printStackTrace();
	        }

	}

}
